<div class="nom-title">基础信息</div> 
<div class="contbar">
	<ul>
		<li>姓名<span class="fr">{$info['member_nick']}</span></li>
		<li>租凭时间<span class="fr">{$info['checkin_time']|date="Y-m-d",###} ~ {$info['leaving_time']|date="Y-m-d",###}</span></li>
		<li>合同号<span class="fr">{$info['contract']}</span></li>
		<li style="border-bottom: 0px;">余额<span class="fr">￥{$info['point']}</span></li>
	</ul>
</div>

<div class="nom-title">充值记录</div> 
<div class="contbar">
	<ul>
		<!--
		<li>充值 2017-05-10 充值 ￥100.00元<span class="fr"></span></li>
		<li>充值 2017-05-10 充值 ￥200.00元<span class="fr"></span></li>
		<li>充值 2017-05-10 充值 ￥300.00元<span class="fr"></span></li>-->
		<li>暂无数据...</li>
	</ul>
</div>
<div class="nom-title"></div> 
<div class="tab litab">
	<ul>
		<li class="select" typeid="1">水费</li>
		<li typeid="2">电费</li>
		<!--<li typeid="3">气费</li>-->
	</ul>
</div>
<?php foreach($eqminfo as $k=>$ls){ ?>
<?php if($k == 1){ ?>
<div id="type{$k}" class="lidiv">
<?php }else{ ?>
<div id="type{$k}" class="lidiv" style="display: none;">
<?php } ?>
	<div class="nom-title">当前费用</div> 
	<div class="contbar">
		<ul>
			<li>起数<span class="fr">{$ls['real_start_number']/10}</span></li>
			<li>止数<span class="fr">{$ls['real_last_number']/10}</span></li>
			<li>用量<span class="fr"><?php echo ($ls['real_last_number'] - $ls['real_start_number'])/10; ?></span></li>
			<li>单价<span class="fr">{$ls['rates']}</span></li>
			<li>费用<span class="fr"><?php echo ($ls['real_last_number'] - $ls['real_start_number'])/10 * $ls['rates'];?></span></li>
			<li style="border-bottom: 0px;">余额<span class="fr">0</span></li>
		</ul>
	</div>
	<div class="nom-title">历史费用</div> 
	<div class="contbar">
		<ul>
			<li>起数<span class="fr">{$ls['his_frist']/10}</span></li>
			<li>止数<span class="fr">{$ls['his_last']/10}</span></li>
			<li>用量<span class="fr"><?php echo ($ls['his_last'] - $ls['his_frist'])/10; ?></span></li>
			<li style="border-bottom: 0px;">费用<span class="fr">{$ls['his_point']}</span></li>
		</ul>
	</div>
</div>
<?php } ?>
<script>
	$(document).ready(function(){
		$(".litab li").on('click', function(){
			var typeid = $(this).attr('typeid');
			$(".litab li").removeClass('select');
			$(this).addClass('select');
			//显示对应div
			$(".lidiv").hide();
			$("#type"+ typeid).show();
		});
	});
</script>